package com.example.zheng.qq.util;

import android.app.Application;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;

import com.example.zheng.qq.R;

/**
 * Created by zheng on 17-4-22.
 */
public class ContextApplication extends Application{
    private static Context context;
    private static ImageView mHeadImage;
    public static Context getContext(){
        return context;
    }
    public static ImageView getmHeadImage(){
        return mHeadImage;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        context=getApplicationContext();
        View view= LayoutInflater.from(context).inflate(R.layout.head_image,null);
        mHeadImage=(ImageView)view.findViewById(R.id.headImage);
    }
}
